﻿using System.Xml.Serialization;

namespace ABC.XPath.Test.Models
{
	/// <summary>
	/// Represents the state of a requirement.
	/// </summary>
	public class RequirementState
	{
		private RequirementStateCode _stateCode;
		private RequirementSubStateCode _subStateCode;

		/// <summary>
		/// Gets/set the requirements state code.
		/// </summary>
		[XmlElement("Code", Namespace = "http://emsinet.com/schemas/Order/Data")]
		public RequirementStateCode StateCode
		{
			get { return _stateCode; }
			set { _stateCode = value; }
		}

		/// <summary>
		/// Gets/set the requirements sub state code.
		/// </summary>
		[XmlElement("SubCode", Namespace = "http://emsinet.com/schemas/Order/Data", IsNullable = true)]
		public RequirementSubStateCode SubStateCode
		{
			get { return _subStateCode; }
			set { _subStateCode = value; }
		}
	}
}
